import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView
    },
    {
      path: '/Login',
      name: 'Login',
      component: () => import('../views/Login.vue')
    },
    {
      path: '/AddMD',
      name: 'AddMD',
      component: () => import('../views/AddMD.vue')
    },
    {
      path: '/ShowMD',
      name: 'ShowMD',
      component: () => import('../views/ShowMD.vue')
    },
    {
      path: '/UpdateMD/:id',
      name: 'UpdateMD',
      component: () => import('../views/UpdateMD.vue')
    },
    {
      path: '/AddRoomPrice',
      name: 'AddRoomPrice',
      component: () => import('../views/Rooms/AddRoomPrice.vue')
    },
    {
      path: '/RoomShow',
      name: 'RoomShow',
      component: () => import('../views/Rooms/RoomShow.vue')
    }
  ]
})

export default router
